package com.company.factory;

import com.company.abstruct.AbstractFactory;
import com.company.abstruct.Phone;
import com.company.abstruct.Tablet;
import com.company.produce.phone.SamsungPhone;
import com.company.produce.tablet.SamsungTablet;

public class SamsungFactory extends AbstractFactory {
    @Override
    public Phone producePhone() {
        System.out.println("三星手机工厂生产三星手机");
        return new SamsungPhone();
    }

    @Override
    public Tablet produceTablet() {
        System.out.println("三星平板工厂生产三星平板");
        return new SamsungTablet();
    }
}
